#define NUL_MSG	(Message*)0
//消息格式1
typedef struct message1{
	char* str;
}msg1;
//消息格式2
typedef struct message2{
	int* buf; //缓冲区
	int  size; //缓冲区大小
	unsigned char head;//队列头
	unsigned char tail;//队列尾
}msg2;	

typedef struct message{
	struct message*  next; //下一消息的地址
	int p_src;   //源进程的pid
	int p_dest; //目的进程的pid
	/**
	*消息的载体
	**/
	union{
		msg1 m1;
		msg2 m2;
//		msg3 m3;
//		msg4 m4;
	}m;
}Message;
